<a href="#" class="grid-row-view" data-toggle="modal" data-target="#images_{{ $id ?? 0 }}">
    <img src="{{ $image[0] }}?x-oss-process=image/resize,w_200,h_200" alt="主图" width="{{ $size ?? 50 }}"
         height="{{ $size ?? 50 }}">
</a>
<div class="modal fade" id="images_{{ $id ?? 0 }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 36px;">
                    &times;
                </button>
                <h4 class="modal-title">图片预览</h4>
            </div>
            <div class="modal-body">
                @if(!empty($image))

                    @foreach($image as $value)
                        <img src="{{ $value }}" alt="主图" style="display: block;max-width: 100%; max-height: 70vh;margin: 0 auto">
                    @endforeach
                @endif
                {{--                <img src="{{ $image }}" alt="主图" style="display: block;max-width: 100%; max-height: 70vh;margin: 0 auto">--}}
            </div>
        </div>
    </div>
</div>
